import Vue from 'vue'
import Router from 'vue-router'
import MailDetail from '@/components/MailDetail'
import AllMails from '@/components/AllMails'
import MailBoxConfig from '@/components/MailBoxConfig'


Vue.use(Router)

export default new Router({
    routes: [{
            path: '/saveMailManage',
            name: 'AllMails',
            component: AllMails
        },
        {
            path: '/mail/detail/:id',
            component: MailDetail
        },
        {
            path: '/mailBoxConfig',
            component: MailBoxConfig
        },
        { path: '/', redirect: '/saveMailManage' }
    ]
})